package com.hqyj.ctxp.controller;

import com.hqyj.ctxp.service.ImageService;
import com.hqyj.ctxp.utils.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/image")
public class ImageController {

    @Autowired
    private ImageService imageService;

    // 127.0.0.1:8888/api/image/selectImageAll -- get
    // 查询所有图片
    @GetMapping("/selectImageAll")
    public ResultInfo selectImageAll() {
        return imageService.selectImageAll();
    }
}
